package usr;

import book.BookList;
import operation.Ioperation;

public abstract class User {
    String name;
    protected Ioperation[] array;
    public User(String name) {
        this.name=name;
    }

    public abstract int menu();

    public void doWork(int choice, BookList bookList){
        Ioperation ioperation=array[choice];
        ioperation.work(bookList);
    }

}
